import {BasicColumn, FormSchema} from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '担保人姓名',
    dataIndex: 'userName',
    width: 200,
  },
  {
    title: '身份证号',
    dataIndex: 'cardNo',
    width: 200,
  },
  {
    title: '手机号',
    dataIndex: 'mobile',
    width: 200,
  },
  {
    title: '婚姻状况',
    dataIndex: 'marriage',
    width: 200,
  },
  {
    title: '家庭人数',
    dataIndex: 'familySize',
    width: 200,
  },
  {
    title: '户籍地址',
    dataIndex: 'residenceAddress',
    width: 200,
  },
  {
    title: '现居住地址',
    dataIndex: 'address',
    width: 200,
  },
  {
    title: '单位名称',
    dataIndex: 'companyName',
    width: 200,
  },
  {
    title: '单位地址',
    dataIndex: 'companyAddress',
    width: 200,
  },
  {
    title: '职务',
    dataIndex: 'post',
    width: 200,
  },
  {
    title: '工作收入',
    dataIndex: 'income',
    width: 200,
  },
  {
    title: '电子邮箱',
    dataIndex: 'email',
    width: 200,
  }
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '担保人姓名',
    field: 'userName',
    component: 'Input',
    required: true,
  },
  {
    label: '身份证号',
    field: 'cardNo',
    component: 'Input',
    required: true,
  },
  {
    label: '手机号',
    field: 'mobile',
    component: 'Input',
    required: true,
  },
  {
    label: '婚姻状况',
    field: 'marriage',
    component: 'Input'
  },
  {
    label: '家庭人数',
    field: 'familySize',
    component: 'Input'
  },
  {
    label: '户籍地址',
    field: 'residenceAddress',
    component: 'Input'
  },
  {
    label: '现居住地址',
    field: 'address',
    component: 'Input'
  },
  {
    label: '单位名称',
    field: 'companyName',
    component: 'Input'
  },
  {
    label: '单位地址',
    field: 'companyAddress',
    component: 'Input'
  },
  {
    label: '职务',
    field: 'post',
    component: 'Input'
  },
  {
    label: '工作收入',
    field: 'income',
    component: 'Input'
  },
  {
    label: '电子邮箱',
    field: 'email',
    component: 'Input'
  }
];
